from tkinter import *

coords = [0, 0, 10, 0, 10, 10, 20, 10, 20, 30, 10, 30, 10, 20, 0, 20]

x0 = float(input("Введите x: "))
y0 = float(input("Введите y: "))
coof = float(input("Введите коэффициент:"))

root = Tk ()
root.title(" ИТ марафон ")
root.geometry("500x500")

canvas = Canvas(bg = "lavender", width = 500, height = 500)
canvas.pack(anchor = CENTER, expand = 1)

canvas.create_polygon(coords[0] * coof + x0, coords[1] * coof + y0,
                      coords[2] * coof + x0, coords[3] * coof + y0,
                      coords[4] * coof + x0, coords[5] * coof + y0,
                      coords[6] * coof + x0, coords[7] * coof + y0,
                      coords[8] * coof + x0, coords[9] * coof + y0,
                      coords[10] * coof + x0, coords[11] * coof + y0,
                      coords[12] * coof + x0, coords[13] * coof + y0,
                      coords[14] * coof + x0, coords[15] * coof + y0)

root.mainloop()
                      
